<?php
// +----------------------------------------------------------------------
// | Custom(自定义Widget
// +----------------------------------------------------------------------
// | @link ( http://www.yurnero.net )
// +----------------------------------------------------------------------
// | @copyright
// +----------------------------------------------------------------------
// | @licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | @author Haijun Wu <nicholasinlove@126.com>
// +----------------------------------------------------------------------
// | $Id: ArchivesWidget.class.php 74 2011-03-29 15:37:24Z nicholasinlove1986@gmail.com $
// +----------------------------------------------------------------------


class CustomWidget extends Widget {

	/**
	 * 构造自定义Widget
	 * 
	 */
	public function render($data) {
	
		$output = '';
		$output .= '<!-- '.$data['title'].': START -->'."\n";
		$output .= " <li class=\"widget widget_text dbx-box\">\n";
		$output .= "  <h3 class=\"dbx-handle\">".$data['title']."</h3>\n";
		$output .= $data['description']."\n";
		$output .= ' <!-- '.$data['title'].': END -->'."\n";								

		return $output;
	}
	
}

?>